/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package myspring;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

/**
 *
 * @author lxz
 */
public class Main {

    /**
     * @param args the command line arguments
     * @throws Exception 
     */
    public static void main(String[] args) {
        Resource resource = new ClassPathResource("spring.xml");
        try {
            BeanFactory factory = new XmlBeanFactory(resource);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
